package cn.kgc.student.pojo;

import java.util.Date;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
* 描述：学生实体类
* @author 魏耀
* @date 2019/07/22
*/
public class Student implements Serializable {

   /**学生编号*/
    private Long id;
   /**学生姓名*/
    private String sname;
   /**生日*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
   /**性别*/
    private String gender;
   /**电话*/
    private String telephone;
   /**邮箱*/
    private String email;
   /**班级编号*/
    private Long classid;

    public Student(){}
    
    public Student(Long id,String sname,Date birthday,String gender,String telephone,String email,Long classid){
        this.id = id;
        this.sname = sname;
        this.birthday = birthday;
        this.gender = gender;
        this.telephone = telephone;
        this.email = email;
        this.classid = classid;
    }

   /**获取学生编号属性的值*/
    public Long getId() {
        return this.id;
    }
   /**设置学生编号属性的值*/
    public void setId(Long id) {
        this.id = id;
    }
   /**获取学生姓名属性的值*/
    public String getSname() {
        return this.sname;
    }
   /**设置学生姓名属性的值*/
    public void setSname(String sname) {
        this.sname = sname;
    }
   /**获取生日属性的值*/
    public Date getBirthday() {
        return this.birthday;
    }
   /**设置生日属性的值*/
    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }
   /**获取性别属性的值*/
    public String getGender() {
        return this.gender;
    }
   /**设置性别属性的值*/
    public void setGender(String gender) {
        this.gender = gender;
    }
   /**获取电话属性的值*/
    public String getTelephone() {
        return this.telephone;
    }
   /**设置电话属性的值*/
    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }
   /**获取邮箱属性的值*/
    public String getEmail() {
        return this.email;
    }
   /**设置邮箱属性的值*/
    public void setEmail(String email) {
        this.email = email;
    }
   /**获取班级编号属性的值*/
    public Long getClassid() {
        return this.classid;
    }
   /**设置班级编号属性的值*/
    public void setClassid(Long classid) {
        this.classid = classid;
    }
}
